package com.lucky.common.pojo.dto;

import com.lucky.common.base.BaseDTO;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class LoginDTO extends BaseDTO {
	
	@NotNull(message = "用户名不能为空")
    @Size(message = "长度 [1-20] ", min = 1, max = 20)
    private String username;
 
//    @Min(message = "id不得小于0", value = 0)
//    private Integer id;
     
	@NotNull(message = "密码不能为空")
    private String password;

	@NotNull(message = "密码不能为空")
    private String passwordMd5;

	@NotNull(message = "输入验证码")
    private String vcode;
    
}
